package javabasics.concurrent.guardedsuspension;

/**
 * @Author suxiaoxiao
 * @Date 2019/6/16 13:53
 * @Version 1.0
 */
public class MainTest {

    public static void main(String[] args) {
        // 创建请求队列
        RequestQueue requestQueue = new RequestQueue();

        for (int i = 0; i < 10; i++) {
            new ServerThread(requestQueue, "ServerThread " + i).start();
        }

        for (int i = 0; i < 10; i++) {
            new ClientThread(requestQueue, "ClientThread" + i).start();
        }

    }

}
